﻿<!-- 继承公共视图文件 -->
<!-- 方法一：-->
<!-- <extend name="./Application/Admin/View/layout.html" /> -->
<!-- 方法二：-->
<extend name="Public:layout" />
<block name="mid">

<div class="row">
	<div class="col-md-6">
		<div class="panel">
			<div class="panel-heading bk-bg-primary">
				<h6><i class="fa fa-indent red"></i>添加商品分类</h6>
			</div>
			<div class="panel-body">
			<!-- action=""没有值 ，则默认提交到当前路径-->
				<form action="" method="post" enctype="multipart/form-data" class="form-horizontal ">

					<div class="form-group">
						<label class="col-md-2 control-label" for="select">分类层级</label>
						<div class="col-md-2">
							<select id="select" name="pid" class="form-control" size="1">
								<option value="0">顶级分类</option>
								<foreach name="list" item="v">
									<option value="{$v.id}">{$v.name}</option>
								</foreach>
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-md-2 control-label" for="text-input">分类名称</label>
						<div class="input-group">
							<input id="input1-group1" name="name" class="form-control" placeholder="请输入分类名称" type="text">
							<span class="input-group-addon"><i class="fa fa-user"></i></span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label" for="email-input">分类链接</label>
						<div class="input-group">
							<input id="input1-group1" name="http" class="form-control" placeholder="请输入分类链接" type="text">
							<span class="input-group-addon"><i class="fa fa-key"></i></span>
						</div>
					</div>

					<div class="form-group">
						<label class="col-md-2 control-label" for="select">所属商品类型</label>
						<div class="col-md-3">
							<select id="select" name="goods_type_id" class="form-control" size="1">
									<option>请选择所属商品类型</option>
								<foreach name="goods_type" item="v">
									<option value="{$v.id}">{$v.name}</option>
								</foreach>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label" for="email-input">排序</label>
						<div class="input-group">
							<input id="input1-group1" name="sort" class="form-control" placeholder="请输入排序" type="text">
							<span class="input-group-addon"><i class="fa fa-key"></i></span>
						</div>
					</div>


					<div class="form-group">
						<label class="col-md-2 control-label">显示</label>
						<div class="input-group  col-md-9">
							<div class="radio-custom radio-inline">
								<input id="inline-radio1" name="is_show" value="1" type="radio">
								<label for="radio1"> 是</label>
							</div>
							<div class="radio-custom radio-inline">
								<input id="inline-radio2" name="is_show"  value="0" type="radio">
								<label for="radio2"> 否</label>
							</div>
						</div>
					</div>
					<button type="submit" class="bk-margin-5 btn btn-success">提交</button>
				</form>
			</div>
		</div>
	</div>
</div>


</block>

<!-- js部区块 -->
<block name="js">

<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
})

</script>
</block>